]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
polkit: drop gdmuser naming workaround
authorRay Strode <rstrode@redhat.com>
Tue, 15 Mar 2011 19:22:20 +0000 (15:22 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 15 Mar 2011 19:50:26 +0000 (15:50 -0400)
The polkit authentication dialog contains logic for
falling back to dispalying a user's username if that
user has no real name.

This logic is no longer needed because gdmuser does it
internally now.

https://bugzilla.gnome.org/show_bug.cgi?id=644765

js/ui/polkitAuthenticationAgent.js

index 8834c0e4303a62e14e5e0004c97b5e9ee1a64c98..22535b785109ef0f2731f53dd63bedb01b6de9ae 100644 (file)
@@ -108,10 +108,6 @@ AuthenticationDialog.prototype = {
             userRealName = _('Administrator');
         }
 
-        // Work around Gdm.UserManager returning an empty string for the real name
-        if (userRealName.length == 0)
-            userRealName = userName;
-
         if (userIsRoot) {
             let userLabel = new St.Label(({ style_class: 'polkit-dialog-user-root-label',
                                             text: userRealName }));